package com.downbox.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import java.util.List;
import java.util.Map;

/**
 * 投稿请求类
 */
@Data
public class SubmitReq {
    @NotBlank(message = "类型不能为空")
    private String type; // text|image|audio
    
    @NotNull(message = "内容不能为空")
    private Map<String, Object> payload;
    
    @Size(min = 1, max = 2, message = "情绪标签数量必须在1-2个之间")
    private List<String> moods;
}